package com.yqg.webnavapp;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.Button;

public class WebViewActivity extends Activity {
	
	private WebView wv = null;
	private Button btnBack = null;
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.webview_layout);
        
        wv = (WebView) findViewById(R.id.webview);
        wv.setWebViewClient(new WebViewClient());
    	wv.loadUrl("http://www.gnnlivetv.com/");
    	
    	btnBack = (Button) findViewById(R.id.back_btn);
    	btnBack.setOnClickListener(new OnClickListener() {
			
			public void onClick(View v) {
				Intent intent = new Intent();
				intent.setClass(getApplicationContext(), VideoViewActivity.class);
				startActivity(intent);
				//finish();
			}
		});
    }
    
   
}